import java.util.Scanner;
public class checkers {
	
	public static void main(String[] args) {
	int size;
	System.out.println("SIZE OF THE THING:");
	Scanner scan = new Scanner(System.in);
	size = scan.nextInt();
		for ( int x = 0; x < size; x++) {
			if ( !( x % 2 == 0)) {
				System.out.print(" ");
			}
			for ( int y = 0; y < size; y++) {
				
				System.out.print("# ");
			}
			System.out.println();
		}
		
	scan.close();
	}
	
}